@extends('user._layouts.default')

@section('css')
    {{HTML::style('user/css/base.css')}}
@stop

@section('user-main')
<div style="font-size: 25px;">{{{$title or ''}}}<a href="{{URL::to('user/message')}}" class="am-btn am-fr am-btn-xs am-btn-primary">renphp</a></div>
<hr/>
<div class="am-panel am-panel-default">
    <div class="am-panel-bd">

            <div>
              <form class="am-form am-form-horizontal">
                <div class="am-form-group">
                  <div class="am-u-sm-12 my-padding-0">
                    <textarea>回复给 oschina</textarea>
                  </div>
                </div>
                <div class="am-form-group">
                  <div class="am-u-sm-12 my-padding-0">
                    <button type="submit" class="am-btn am-btn-default">回复</button>
                  </div>
                </div>
              </form>
            </div>
            <hr data-am-widget="divider" style="" class="am-divider am-divider-default"
      />
              <div>
              <ul class="am-comments-list  am-comments-list-flip">
                @foreach ($messages as $message)
                <li class="am-comment">
                  <a href="#link-to-user-home">
                    <img src="{{HTML::image('')}}" alt="" class="am-comment-avatar" width="48" height="48"/>
                  </a>

                  <div class="am-comment-main" >
                    <header class="am-comment-hd">
                      <div class="am-comment-meta">
                        <p class="am-inline am-fl" style="margin:0px;"><a href="#link-to-user" class="am-comment-author">oschina</a>
                        留言于 <time datetime="{{$message->created_at}}" title="">{{$message->created_at}}</time>
                        </p>
                        <p class="am-inline am-fr" style="margin:0px;"><a href="">删除</a></p>
                      </div>
                    </header>

                    <div class="am-comment-bd">
                      {{{$message->message_content}}}
                    </div>
                  </div>
                </li>
                @endforeach
              </ul>
              </div>
              <div>
              <ul class="am-pagination am-pagination-centered">
                <li class="am-disabled"><a href="#">&laquo;</a></li>
                <li class="am-active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
              </ul>
              </div>
    </div>
</div>

@stop
<!--[if (gte IE 9)|!(IE)]><!-->
@section('js')
    <script type="text/javascript" src="{{\URL::asset('user/js/base.js')}}"></script>
@stop